﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;

namespace DAO
{
    public class LoaiSanPhamDAO
    {
        public static List<LoaiSanPham> LayLoaiSanPham()
        {
            List<LoaiSanPham> kq = new List<LoaiSanPham>();
            DNQCDataContext dc = new DNQCDataContext();
            var v = from lsp in dc.LoaiSanPhams select lsp;
            foreach (LoaiSanPham item in v)
            {
                kq.Add(item);
            }
            return kq;
        }
    }
}
